import request from '@/utils/request'

// 查询围栏列列表
export function listRail(query) {
  return request({
    url: '/vehicle/rail/list',
    method: 'get',
    params: query
  })
}

// 查询围栏列详细
export function getRail(railId) {
  return request({
    url: '/vehicle/rail/' + railId,
    method: 'get'
  })
}

// 新增围栏列
export function addRail(data) {
  return request({
    url: '/vehicle/rail',
    method: 'post',
    data: data
  })
}

// 修改围栏列
export function updateRail(data) {
  return request({
    url: '/vehicle/rail',
    method: 'put',
    data: data
  })
}

// 删除围栏列
export function delRail(railId) {
  return request({
    url: '/vehicle/rail/' + railId,
    method: 'delete'
  })
}
